package components.menus.menubar
{
	import mx.collections.ArrayCollection;
	
	public class MenuItem
	{
		private var _id:String;
		
		private var _text:String;
		
		private var _subItens:ArrayCollection;
		
		public function MenuItem()
		{
			this._subItens = new ArrayCollection();
		}		
		
		public function get id():String
		{
			return this._id;
		}
		
		public function set id(id:String):void
		{
			this._id = id;
		}
		
		public function get text():String
		{
			return this._text;
		}
		
		public function set text(text:String):void
		{
			this._text = text;
		}
		
		public function addSubItem(subItem:MenuSubItem):void
		{
			this._subItens.addItem(subItem);
		}
		
		public function get subItens():ArrayCollection
		{
			return this._subItens;
		}
	}
}